package edu.zut.cs.software.example.menu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.example.Menu.dao.MenuDao;
import edu.zut.cs.software.example.Menu.domain.MainMenu;
import edu.zut.cs.software.example.menu.service.MenuManager;

/**
 * 
 * @author chen ming yang
 *
 */
@Service
public class MenuManagerImpl implements MenuManager {
	MenuDao menuDao;

	@Autowired
	public void setMenuDao(MenuDao menuDao) {
		this.menuDao = menuDao;
	}

	/**
	 * Get all menu lists through the DAO layer getMenu service
	 */
	@Override
	public List<MainMenu> MenuService() {
		return menuDao.getMenus();
	}
	
	
	
}
